create dummy variable stata. There are any references about create dummy variable stata in here. you can look below.